package com.gdcp.service;

import com.gdcp.beans.Category;
import org.springframework.security.access.prepost.PreAuthorize;

import java.util.List;
import java.util.Map;

/**
 * @author 杨华京
 * @version 1.0
 * @description
 * @since 1.8
 */
public interface CategoryService {

    Map<String,Object> queryByParentId_one();

    List<Category> queryByParentId(Integer level);

    Category getInformation(Integer parentId);

    List<Category> queryByShopId(Integer shop_id);

    Map<String,Object> findPageBreakByCondition(Map<String, Object> param, Integer shop_id);

    Map<String,Object> removeByPrimaryKey(Integer[] id);

    Map<String,Object> searchInformation(Map<String, Object> param);

    Map<String, Object> insert(Category category);

    //Category getInformation(Integer id);

    Map<String,Object> updateByCategory(Category category);

    List<Category> queryByAll();

    List<Category> queryAllByShopId(Integer shopId);

    List<Category> queryById(Integer parentId);

    @PreAuthorize("hasAuthority('ROLE_ADMIN')")
    Map<String, Object> findAll(Map<String, Object> model);

    Map<String, Object> searchInformationByShopId(Map<String, Object> model, Integer shop_id);
}
